package org.speed.mes.base.domain.bo;

import org.speed.mes.base.domain.BsWorkline;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 产线管理业务对象 bs_workline
 *
 * @author speed-mes
 * @date 2024-06-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BsWorkline.class, reverseConvertGenerate = false)
public class BsWorklineBo extends BaseEntity {

    /**
     * 产线id
     */
    @NotNull(message = "产线id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 产线编码
     */
    @NotBlank(message = "产线编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 产线名称
     */
    @NotBlank(message = "产线名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 所属车间id
     */
    @NotNull(message = "所属车间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long workshopId;

    /**
     * 产线负责人id
     */
    private Long userId;

    /**
     * 班制
     */
    private String shiftSystem;

    /**
     * 是否启用 0停用 1启用
     */
    private String status;

    /**
     * 备注
     */
    private String remark;


}
